﻿@model eShop.Web.Admin.Models.CustomerModel

@section header{
    <title>添加客户</title>
    <link type="text/css" rel="stylesheet" href="/administration/css/site.css" />
    <script type="text/javascript" src="/administration/scripts/jquery.js"></script>
    <script type="text/javascript" src="/administration/scripts/jquery.validate.js"></script>
    <script type="text/javascript" src="/administration/scripts/jquery.validate.unobtrusive.js"></script>
    <script type="text/javascript" src="/administration/scripts/region.js"></script>
    <style type="text/css">
        .actionDiv {
            width: 110px;
            float: left;
        }
    </style>
}

@section body{
    <h1 class="rightH1">
        客户管理 &gt;&gt; 添加客户
        <div class="right">
            <a href="@Html.Raw(ViewData["referer"].ToString())" class="menuBT"><img src="/administration/images/goback.jpg" />返回列表</a>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </h1>

    @using (Html.BeginForm())
    {
        <div class="addTable">
            <table width="100%">
                <tr>
                    <td width="86px" align="right">客户编号：</td>
                    <td>@Html.TextBoxFor(x => x.EnCode, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.EnCode)</td>
                </tr>
                <tr>
                    <td width="86px" align="right">客户名称：</td>
                    <td>@Html.TextBoxFor(x => x.FullName, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.FullName)</td>
                </tr>
                <tr>
                    <td width="86px" align="right">客户简称：</td>
                    <td>@Html.TextBoxFor(x => x.ShortName, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.ShortName)</td>
                </tr>

                <tr>
                    <td align="right">所在区域：</td>
                    <td>
                        <select class="provinceSelect" id="provinceSelect">
                            <option selected="selected" value="-1">请选择</option>
                        </select>
                        <select class="citySelect" id="citySelect">
                            <option selected="selected" value="-1">请选择</option>
                        </select>
                        <select class="countySelect" id="countySelect" name="regionid">
                            <option selected="selected" value="-1">请选择</option>
                        </select>
                    </td>
                </tr>

                <tr>
                    <td width="86px" align="right">客户电话：</td>
                    <td>@Html.TextBoxFor(x => x.Tel, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.Tel)</td>
                </tr>
                <tr>
                    <td width="86px" align="right">手机号码：</td>
                    <td>@Html.TextBoxFor(x => x.Mobile, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.Mobile)</td>
                </tr>
                <tr>
                    <td width="86px" align="right">传真：</td>
                    <td>@Html.TextBoxFor(x => x.Fax, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.Fax)</td>
                </tr>
                <tr>
                    <td width="86px" align="right">客户地址：</td>
                    <td>@Html.TextBoxFor(x => x.CompanyAddress, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.CompanyAddress)</td>
                </tr>
                <tr>
                    <td width="86px" align="right">网址：</td>
                    <td>@Html.TextBoxFor(x => x.CompanySite, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.CompanySite)</td>
                </tr>
                <tr>
                    <td width="86px" align="right">备注：</td>
                    <td>@Html.TextBoxFor(x => x.Description, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.Description)</td>
                </tr>
                <tr>
                    <td align="right">&nbsp;</td>
                    <td>
                        <a href="" class="addBt" id="sumbitBut"><img src="/administration/images/submit.jpg" /></a>
                        <script type="text/javascript">
                            $(function () {
                                $("#sumbitBut").click(function () {
                                    $("form:first").submit();
                                    return false;
                                })
                            });
                        </script>
                    </td>
                </tr>
                <tr>
                    <td align="right">&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
            </table>
        </div>
    }
}